package com.example.haojiutao.model.vo.response;

import com.example.haojiutao.model.domain.BaseEntity;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @Description:
 * @Author: zhou_yuan
 * @CreateTime： 2024/1/26 14:43
 */
@Data
public class OrderGoodsDetailVO extends BaseEntity {
    private Integer orderNumber;
    private Integer goodsId;
    private String trackingNumber;
    private String orderState;
    private String picture;
    private String details;
    private String userName;
    private String goodsName;
    private String sellerName;
    private Double orderPrice;//订单价格
    private Double price;//商品单价
    private Integer amount;//数量
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date orderTime;//下单时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date receivingTime;//收货时间
    private String phoneNum;//买家手机号
    private String address; //买家地址
    private String notes;//备注
    private String receivingState;//是否收货
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private String payTime;//支付时间
    private Integer delFlag;//删除标志
    private Integer commentFlag;// 评论标志
    private Integer afterSales;//售后标志，0为正常，1为售后
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date delTime;
}
